
public class Prime {
	//constructor
	public Prime () {
		
	}
	
	
	
	
	
	public boolean isPrime(int n) {
		
		if(n == 1 || n== 0 || n < 0){
			System.out.println("This is not a Prime");
			return false;
		}
		
		for(int i=2; i<n; i++){
			
			if(n % i ==0){
				
				System.out.println("This is not a Prime");
				return false;
			
			}
			
			
		} 
		System.out.println("This is  a Prime");
		return true;
		
	}
	
	
	
	public static void main(String[] args) {
		Prime prime = new Prime ();
		prime.isPrime(2);
		
		
	

	}
}